package top.sigetech.fmallh.vo;

import java.util.HashMap;


/**
 * @author cores
 * 2023/02/23 22:48
 */
public class ResultVo extends HashMap<String,Object> {

    public ResultVo() {
    }

    public ResultVo(int code, String msg, Object data) {
        this.put("code",code);
        this.put("msg",msg);
        this.put("data",data);
    }

    public static ResultVo ok(){
        return new ResultVo(200,"成功",null);
    }
    public static ResultVo ok(Object data){
        return new ResultVo(200,"成功",data);
    }
    public static ResultVo error(){
        return new ResultVo();
    }
}
